

package com.example.administrator.caigou51.recyclerCard.cardView;

import android.content.Context;
import android.content.Intent;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.caigou51.R;
import com.example.administrator.caigou51.recyclerCard.basic.CardItemView;
import com.example.administrator.caigou51.recyclerCard.card.AddressManagerCard;


public class AddressManagerCardView extends CardItemView<AddressManagerCard> implements View.OnClickListener{
 	private Context mContext;
    public AddressManagerCardView(Context context) {
        super(context);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public AddressManagerCardView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext=context;
        // TODO Auto-generated constructor stub
    }

    public AddressManagerCardView(Context context,
                                  AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        mContext=context;
        // TODO Auto-generated constructor stub
    }
    ImageView imageViewAddressEdit;
    @Override
    public void build(AddressManagerCard card) {
        // TODO Auto-generated method stub
        super.build(card);
        imageViewAddressEdit= (ImageView) findViewById(R.id.imageViewAddressEdit);
        imageViewAddressEdit.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
       // Intent intent=new Intent(mContext, AddressEditActivity.class);
      //  mContext.startActivity(intent);
    }
}
